<script setup lang="ts">
import { RouterView, useRouter } from 'vue-router'

const router = useRouter()
window.api?.openPage((_event, value) => {
  console.log(_event, value)
  // 监听系统菜单的跳转
  if (value) {
    router.push(value)
  }
})
</script>

<template>
  <a-layout class="layout">
    <a-layout-content class="main-content">
      <!-- <a-breadcrumb style="margin: 16px 0">
        <a-breadcrumb-item>Home</a-breadcrumb-item>
        <a-breadcrumb-item>List</a-breadcrumb-item>
        <a-breadcrumb-item>App</a-breadcrumb-item>
      </a-breadcrumb> -->
      <div class="content">
        <RouterView />
      </div>
    </a-layout-content>
    <a-layout-footer style="text-align: center" class="custom-footer">
      pdf转换器 ©2023 Created by 羽歌
    </a-layout-footer>
  </a-layout>
</template>

<style lang="less">
@import './assets/css/styles.less';
.layout {
  height: 100%;
  background-color: transparent;
  .custom-footer {
    background-color: rgba(255, 255, 255, 0.7);
  }
}
.main-content {
  padding: 64px 50px 0;
  /* display: flex; */
  height: 100%;
  /* flex-direction: column;
  align-items: center;
  justify-content: center; */
  background: transparent;
  width: 100%;
  max-height: calc(100vh - 65px);
  overflow: auto;
  
}
.content {
  width: 100%;
}
.site-layout-content {
  min-height: 280px;
  padding: 24px;
  background: #fff;
}
#components-layout-demo-top .logo {
  float: left;
  width: 120px;
  height: 31px;
  margin: 16px 24px 16px 0;
  background: rgba(255, 255, 255, 0.3);
}
.ant-row-rtl #components-layout-demo-top .logo {
  float: right;
  margin: 16px 0 16px 24px;
}

[data-theme='dark'] .site-layout-content {
  background: #141414;
}

</style>

<!-- <style lang="less">
@import './assets/css/styles.less';
</style> -->
